package com.design.mode.abstractfactory;

import org.junit.jupiter.api.Test;

/**
 * @author 宫静雨
 * @version 1.0
 * @since 2023-04-10 08:55:00
 */
public class AbstractFTest {

    @Test
    public void test2() {
        AbstractF f = new AbstractF2();
        System.out.println("f.pa() = " + f.pa());
        System.out.println("f.pb() = " + f.pb());
    }

    @Test
    public void test1() {
        AbstractF f = new AbstractF1();
        System.out.println("f.pa() = " + f.pa());
        System.out.println("f.pb() = " + f.pb());
    }
}
